Skip to main content

Response Structure

When a job completes, the API POSTs an array of EReceipt objects to your configured results_endpoint. Each object represents a single parsed receipt email.


Top-Level Response Envelope

Every API response (except the results webhook payload) follows this envelope:

FieldTypeDescription
successbooleantrue if the request succeeded
errorobjectPresent when success is false
error.codeintegerNumeric error code
error.messagestringHuman-readable error description
error.missing_idsstringComma-separated missing receipt IDs (error 114 only)

EReceipt Object

The results webhook receives a JSON array where each element is an EReceipt object.

Identity Fields

FieldTypeDescriptionExample
blinkReceiptIdstringUnique identifier assigned by BlinkReceipt"BR-XXXX-YYYY"
ereceiptEmailIdstringMessage ID from the email provider"<msg-id@mail.gmail.com>"
origBlinkReceiptIdstringOriginal receipt ID, populated when this is a reprocessed receipt"BR-ORIG-ZZZZ"

Email Metadata

FieldTypeDescriptionExample
emailTimestampstringWhen the email was received (format: yyyy-MM-dd HH:mm)"2024-08-01 09:55"
ereceiptEmailProviderstringEmail provider used by the end user"gmail"
ereceiptMerchantEmailstringSender address of the retailer email"auto-confirm@amazon.com"
ereceiptEmailSubjectstringSubject line of the email"Your Amazon.com order"

Receipt Dates and Times

These fields use confidence objects — see the Confidence Object section below.

FieldTypeDescriptionExample
receiptDateconfidence objectPurchase date (format: MM/dd/yyyy){ "value": "08/01/2024", "confidence": 95 }
receiptTimeconfidence objectPurchase time (format: HH:mm){ "value": "09:55", "confidence": 80 }

Merchant Information

FieldTypeDescriptionExample
bannerIdintegerInternal merchant identifier1042
merchantNameconfidence objectStore or brand name{ "value": "Amazon", "confidence": 99 }
clientMerchantNameconfidence objectClient-configured merchant name override{ "value": "Amazon US", "confidence": 99 }
ereceiptFulfilledBystringFulfillment service name (e.g., third-party seller)"Fulfilled by Amazon"
ereceiptSubMerchantstringSub-merchant name within a marketplace"TechSeller LLC"
ereceiptPOSSystemstringPoint-of-sale system identifier"shopify"

Order Information

FieldTypeDescriptionExample
ereceiptOrderNumberstring or numberOrder or confirmation number"113-1234567-8901234"
ereceiptOrderStatusstringStatus of the order"completed"
ereceiptPurchaseTypestringFulfillment method"Delivery"

Financial Totals

FieldTypeDescriptionExample
totalconfidence objectGrand total charged{ "value": 59.99, "confidence": 95 }
subtotalconfidence objectSubtotal before tax and shipping{ "value": 54.99, "confidence": 90 }
taxesconfidence objectTax amount{ "value": 4.40, "confidence": 88 }
ereceiptShippingCostsconfidence objectShipping and handling charges{ "value": 0.00, "confidence": 92 }
currencyCodestringISO 4217 currency code"USD"

Parsing and Verification

FieldTypeDescriptionExample
parsingMethodstringHow the email was parsed: "template" or "generic""template"
isEReceiptbooleanWhether the email was identified as a purchase receipttrue
ereceiptAuthenticatedbooleanWhether the email passed DKIM/SPF verificationtrue

Raw Content

FieldTypeDescription
ereceiptRawHTMLstringParsed HTML content extracted from the email
ereceiptRawEMLstringFull raw EML content; only populated when return_eml: true is set in config

Aggregation

FieldTypeDescription
ereceiptComponentEmailsarray of stringsList of blinkReceiptId values that were merged into this aggregated receipt

Application Metadata

FieldTypeDescription
appVersionstringVersion of the BlinkReceipt parsing application that processed this receipt

Products Array

Each EReceipt object contains a products array of EReceiptProduct objects.

EReceiptProduct Fields

FieldTypeDescriptionExample
productNamestringFull display name of the product"Logitech MX Master 3 Wireless Mouse"
brandstringProduct brand"Logitech"
categorystringTaxonomy path for the product"Electronics > Computer Accessories"
sizestringSize or variant descriptor"Large"
upcstringUniversal Product Code"097855149138"
imgUrlstringURL of the product thumbnail image"https://images.example.com/product.jpg"
productNumberconfidence objectRetailer's SKU or item number{ "value": "B07S395RWD", "confidence": 90 }
productDescriptionconfidence objectShort product description{ "value": "Wireless Mouse", "confidence": 85 }
quantityconfidence objectNumber of units purchased{ "value": 1, "confidence": 99 }
unitPriceconfidence objectPrice per unit{ "value": 59.99, "confidence": 95 }
totalPriceconfidence objectTotal price for this line item{ "value": 59.99, "confidence": 95 }
uomconfidence objectUnit of measure{ "value": "each", "confidence": 80 }
shippingStatusstringShipping status for this item"shipped"
subProductsarrayNested products (e.g., bundle components)
probabilitynumberMatch confidence score (0–1) for possible product matches0.92
possibleProductsarrayAlternative product match candidates

Confidence Object

Many fields are returned as confidence objects rather than plain values. This lets you assess the reliability of each extracted data point.

FieldTypeDescription
valuestring or numberThe extracted value
confidenceintegerConfidence score from 0 (lowest) to 100 (highest)

Example:

{
"value": 59.99,
"confidence": 95
}

Annotated Example Receipt

{
"blinkReceiptId": "BR-XXXX-YYYY",
"ereceiptEmailId": "<msg-id@mail.gmail.com>",
"emailTimestamp": "2024-08-01 09:55",
"parsingMethod": "template",
"isEReceipt": true,
"ereceiptAuthenticated": true,
"ereceiptEmailProvider": "gmail",
"ereceiptMerchantEmail": "auto-confirm@amazon.com",
"ereceiptEmailSubject": "Your Amazon.com order of \"Wireless Mouse\" has shipped",
"bannerId": 1042,
"merchantName": {
"value": "Amazon",
"confidence": 99
},
"receiptDate": {
"value": "08/01/2024",
"confidence": 95
},
"receiptTime": {
"value": "09:55",
"confidence": 80
},
"ereceiptOrderNumber": "113-1234567-8901234",
"ereceiptOrderStatus": "completed",
"ereceiptPurchaseType": "Delivery",
"currencyCode": "USD",
"subtotal": {
"value": 54.99,
"confidence": 90
},
"taxes": {
"value": 4.40,
"confidence": 88
},
"ereceiptShippingCosts": {
"value": 0.00,
"confidence": 92
},
"total": {
"value": 59.39,
"confidence": 95
},
"products": [
{
"productName": "Logitech MX Master 3 Wireless Mouse",
"brand": "Logitech",
"category": "Electronics > Computer Accessories",
"upc": "097855149138",
"imgUrl": "https://images.example.com/product.jpg",
"productNumber": {
"value": "B07S395RWD",
"confidence": 90
},
"productDescription": {
"value": "Wireless Mouse, Darkfield, Ergonomic",
"confidence": 85
},
"quantity": {
"value": 1,
"confidence": 99
},
"unitPrice": {
"value": 54.99,
"confidence": 95
},
"totalPrice": {
"value": 54.99,
"confidence": 95
},
"shippingStatus": "shipped"
}
],
"appVersion": "1.0.0"
}

For guidance on errors returned in the top-level envelope, see error-handling.md.